﻿using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;
using UIComposition.Infrastructure;

namespace FXSStation.Modules.DataModule
{
    public class DataModule : IModule
    {
        public readonly IRegionViewRegistry regionViewRegistry;
        public DataModule(IRegionViewRegistry registry)
        {
            this.regionViewRegistry = registry;
        }
        public void Initialize()
        {
            regionViewRegistry.RegisterViewWithRegion(RegionNames.DataRegion, typeof(AccountView.AccountView));

            regionViewRegistry.RegisterViewWithRegion(RegionNames.MenuRegion, typeof(MenuView));
        }
    }
}
